import Cookies from "js-cookie";

const TokenKey = "slwl_token";
const userName = "slwl_name";
export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

export function getName() {
  return Cookies.get(userName);
}
export function setName(user) {
  return Cookies.set(userName, user);
}
export function removeName() {
  return Cookies.remove(userName);
}
